#!/bin/bash
echo "start"

mvn clean package

sudo docker login --username=15695azcc90 registry.cn-hangzhou.aliyuncs.com

# 免密码 sudo
echo "xlr" | sudo -S echo "next"

sudo docker build --rm  -t cloud-gateway .

sudo docker tag cloud-gateway registry.cn-hangzhou.aliyuncs.com/xlr_cloud_demo/cloud-gateway:1.0

sudo docker push registry.cn-hangzhou.aliyuncs.com/xlr_cloud_demo/cloud-gateway:1.0

echo "end"
